<template>
	<view class="susT">
		<u-navbar title="商品购买成功" :background="{ background: '#a0cfff' }" title-color="#FFFFFF"></u-navbar>
		<view class="SImage flex-ct u-m-t-40">
			<image src="../../static/image/sucss.png" style="height: 120rpx;width: 120rpx;"></image>
		</view>
		<view class="Stitle u-m-40">
			你已购买商品
			<text style="color: #FF6101;">{{title}}</text>,请带上
			<text style="color: #FF6101;">{{price}}</text>元于
			<text style="color: #FF6101;">{{time}}</text>到
			<text style="color: #FF6101;">{{address}}</text>取货。
		</view>
		<view class="u-p-40">
			<u-button type="primary" @click="indexClick()">返回首页</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				price: '',
				time: '',
				address: ''
			}
		},
		onLoad:function(options){
			let that = this
			console.log(options)
			if(options.title != ""){
				that.title = options.title
			}
			if(options.price != ""){
				that.price = options.price
			}
			if(options.time != ""){
				that.time = options.time
			}
			if(options.address != ""){
				that.address = options.address
			}
		},
		methods: {
			indexClick(){
				uni.reLaunch({
					url: '../index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.susT{
	.SImage{
		
	}
	.Stitle{
		font-size: 36rpx;
	}
}
</style>
